import Vue from 'vue';
import Vuex from 'vuex';
import User from '@/store/modules/User';
import Menu from '@/store/modules/Menu';

import VuexLocalSync from '@/plugins/VuexLocalSync';

Vue.use(Vuex);
let VueLocalSyncPlugin = new VuexLocalSync({});

export default new Vuex.Store({
    modules: {
        User,
        Menu
    },
    plugins: [VueLocalSyncPlugin.plugin]
});
